package commandDemo;

import commandDemo.impl.Stereo;

public class StereoOffWithCDCommand implements Command{

    private final Stereo stereo;

    public StereoOffWithCDCommand(Stereo stereo) {
        this.stereo = stereo;
    }


    @Override
    public void execute() {
        if (stereo!=null){
            stereo.off();

        }
    }
}
